<!DOCTYPE html><html lang="zh-CN" data-theme="light"><head><meta name="referrer" content="no-referrer"><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"><title>000.python-tkinter界面开发视频教程 | 扣小妖</title><meta name="author" content="扣小妖"><meta name="copyright" content="扣小妖"><meta name="format-detection" content="telephone=no"><meta name="theme-color" content="#ffffff"><meta name="description" content="学习 python 的 Tkinter 界面应用开发  P1_Python_GUI之tkinter介绍点击播放⬇  P2_Python_GUI之登录（1）点击播放⬇  P3_python_GUI之登录（2）点击播放⬇  P4_python_GUI登录(3)完结点击播放⬇  P5_python_GUI主窗体之菜单组件点击播放⬇  P6_Python_GUI_主窗体之常用组件点击播放⬇  P7_Py">
<meta property="og:type" content="article">
<meta property="og:title" content="000.python-tkinter界面开发视频教程">
<meta property="og:url" content="http://liukuaizhuan.gitee.io/posts/b3973be2.html">
<meta property="og:site_name" content="扣小妖">
<meta property="og:description" content="学习 python 的 Tkinter 界面应用开发  P1_Python_GUI之tkinter介绍点击播放⬇  P2_Python_GUI之登录（1）点击播放⬇  P3_python_GUI之登录（2）点击播放⬇  P4_python_GUI登录(3)完结点击播放⬇  P5_python_GUI主窗体之菜单组件点击播放⬇  P6_Python_GUI_主窗体之常用组件点击播放⬇  P7_Py">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://p.ananas.chaoxing.com/star3/origin/aabac151cc827272090f28644d2e2094.png">
<meta property="article:published_time" content="2022-12-08T06:49:30.000Z">
<meta property="article:modified_time" content="2022-12-15T08:38:13.227Z">
<meta property="article:author" content="扣小妖">
<meta property="article:tag" content="tkinter界面应用开发">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://p.ananas.chaoxing.com/star3/origin/aabac151cc827272090f28644d2e2094.png"><link rel="shortcut icon" href="/img/favicon.png"><link rel="canonical" href="http://liukuaizhuan.gitee.io/posts/b3973be2"><link rel="preconnect" href="//cdn.jsdelivr.net"/><link rel="preconnect" href="//busuanzi.ibruce.info"/><link rel="stylesheet" href="/css/index.css"><link rel="stylesheet" href="https://lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/font-awesome/6.0.0/css/all.min.css" media="print" onload="this.media='all'"><link rel="stylesheet" href="https://lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/node-snackbar/0.1.16/snackbar.min.css" media="print" onload="this.media='all'"><link rel="stylesheet" href="https://gcore.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox.min.css" media="print" onload="this.media='all'"><script>const GLOBAL_CONFIG = { 
  root: '/',
  algolia: undefined,
  localSearch: {"path":"/search.xml","preload":true,"languages":{"hits_empty":"找不到您查询的内容：${query}"}},
  translate: undefined,
  noticeOutdate: undefined,
  highlight: {"plugin":"highlighjs","highlightCopy":true,"highlightLang":true,"highlightHeightLimit":false},
  copy: {
    success: '复制成功',
    error: '复制错误',
    noSupport: '浏览器不支持'
  },
  relativeDate: {
    homepage: false,
    post: false
  },
  runtime: '',
  date_suffix: {
    just: '刚刚',
    min: '分钟前',
    hour: '小时前',
    day: '天前',
    month: '个月前'
  },
  copyright: undefined,
  lightbox: 'fancybox',
  Snackbar: {"chs_to_cht":"你已切换为繁体","cht_to_chs":"你已切换为简体","day_to_night":"你已切换为深色模式","night_to_day":"你已切换为浅色模式","bgLight":"#49b1f5","bgDark":"#1f1f1f","position":"bottom-left"},
  source: {
    justifiedGallery: {
      js: 'https://gcore.jsdelivr.net/npm/flickr-justified-gallery/dist/fjGallery.min.js',
      css: 'https://gcore.jsdelivr.net/npm/flickr-justified-gallery/dist/fjGallery.min.css'
    }
  },
  isPhotoFigcaption: false,
  islazyload: false,
  isAnchor: false
}</script><script id="config-diff">var GLOBAL_CONFIG_SITE = {
  title: '000.python-tkinter界面开发视频教程',
  isPost: true,
  isHome: false,
  isHighlightShrink: false,
  isToc: true,
  postUpdate: '2022-12-15 16:38:13'
}</script><noscript><style type="text/css">
  #nav {
    opacity: 1
  }
  .justified-gallery img {
    opacity: 1
  }

  #recent-posts time,
  #post-meta time {
    display: inline !important
  }
</style></noscript><script>(win=>{
    win.saveToLocal = {
      set: function setWithExpiry(key, value, ttl) {
        if (ttl === 0) return
        const now = new Date()
        const expiryDay = ttl * 86400000
        const item = {
          value: value,
          expiry: now.getTime() + expiryDay,
        }
        localStorage.setItem(key, JSON.stringify(item))
      },

      get: function getWithExpiry(key) {
        const itemStr = localStorage.getItem(key)

        if (!itemStr) {
          return undefined
        }
        const item = JSON.parse(itemStr)
        const now = new Date()

        if (now.getTime() > item.expiry) {
          localStorage.removeItem(key)
          return undefined
        }
        return item.value
      }
    }
  
    win.getScript = url => new Promise((resolve, reject) => {
      const script = document.createElement('script')
      script.src = url
      script.async = true
      script.onerror = reject
      script.onload = script.onreadystatechange = function() {
        const loadState = this.readyState
        if (loadState && loadState !== 'loaded' && loadState !== 'complete') return
        script.onload = script.onreadystatechange = null
        resolve()
      }
      document.head.appendChild(script)
    })
  
      win.activateDarkMode = function () {
        document.documentElement.setAttribute('data-theme', 'dark')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#0d0d0d')
        }
      }
      win.activateLightMode = function () {
        document.documentElement.setAttribute('data-theme', 'light')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#ffffff')
        }
      }
      const t = saveToLocal.get('theme')
    
          if (t === 'dark') activateDarkMode()
          else if (t === 'light') activateLightMode()
        
      const asideStatus = saveToLocal.get('aside-status')
      if (asideStatus !== undefined) {
        if (asideStatus === 'hide') {
          document.documentElement.classList.add('hide-aside')
        } else {
          document.documentElement.classList.remove('hide-aside')
        }
      }
    
    const detectApple = () => {
      if(/iPad|iPhone|iPod|Macintosh/.test(navigator.userAgent)){
        document.documentElement.classList.add('apple')
      }
    }
    detectApple()
    })(window)</script><meta name="generator" content="Hexo 5.4.2"></head><body><div id="sidebar"><div id="menu-mask"></div><div id="sidebar-menus"><div class="avatar-img is-center"><img src="https://p.ananas.chaoxing.com/star3/origin/c6eb667caaea4b46a934d65b6a348821.png" onerror="onerror=null;src='/img/friend_404.gif'" alt="avatar"/></div><div class="sidebar-site-data site-data is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">57</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">6</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">14</div></a></div><hr/><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 时间轴</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div><div class="menus_item"><a class="site-page group" href="javascript:void(0);"><i class="fa-fw fa fa-heartbeat"></i><span> 清单</span><i class="fas fa-chevron-down"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/music/"><i class="fa-fw fas fa-music"></i><span> 音乐</span></a></li><li><a class="site-page child" href="/photos/"><i class="fa-fw fas fa-images"></i><span> 照片</span></a></li><li><a class="site-page child" href="/movies/"><i class="fa-fw fas fa-video"></i><span> 电影</span></a></li></ul></div><div class="menus_item"><a class="site-page" href="/link/"><i class="fa-fw fas fa-link"></i><span> 友链</span></a></div><div class="menus_item"><a class="site-page" href="/about/"><i class="fa-fw fas fa-heart"></i><span> 关于</span></a></div></div></div></div><div class="post" id="body-wrap"><header class="post-bg" id="page-header" style="background-image: url('https://p.ananas.chaoxing.com/star3/origin/aabac151cc827272090f28644d2e2094.png')"><nav id="nav"><span id="blog_name"><a id="site-name" href="/">扣小妖</a></span><div id="menus"><div id="search-button"><a class="site-page social-icon search"><i class="fas fa-search fa-fw"></i><span> 搜索</span></a></div><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 时间轴</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div><div class="menus_item"><a class="site-page group" href="javascript:void(0);"><i class="fa-fw fa fa-heartbeat"></i><span> 清单</span><i class="fas fa-chevron-down"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/music/"><i class="fa-fw fas fa-music"></i><span> 音乐</span></a></li><li><a class="site-page child" href="/photos/"><i class="fa-fw fas fa-images"></i><span> 照片</span></a></li><li><a class="site-page child" href="/movies/"><i class="fa-fw fas fa-video"></i><span> 电影</span></a></li></ul></div><div class="menus_item"><a class="site-page" href="/link/"><i class="fa-fw fas fa-link"></i><span> 友链</span></a></div><div class="menus_item"><a class="site-page" href="/about/"><i class="fa-fw fas fa-heart"></i><span> 关于</span></a></div></div><div id="toggle-menu"><a class="site-page"><i class="fas fa-bars fa-fw"></i></a></div></div></nav><div id="post-info"><h1 class="post-title">000.python-tkinter界面开发视频教程</h1><div id="post-meta"><div class="meta-firstline"><span class="post-meta-date"><i class="fa-fw post-meta-icon far fa-calendar-alt"></i><span class="post-meta-label">发表于</span><time datetime="2022-12-08T06:49:30.000Z" title="发表于 2022-12-08 14:49:30">2022-12-08</time></span><span class="post-meta-categories"><span class="post-meta-separator">|</span><i class="fas fa-inbox fa-fw post-meta-icon"></i><a class="post-meta-categories" href="/categories/tkinter%E7%95%8C%E9%9D%A2%E5%BA%94%E7%94%A8%E5%BC%80%E5%8F%91/">tkinter界面应用开发</a></span></div><div class="meta-secondline"><span class="post-meta-separator">|</span><span class="post-meta-pv-cv" id="" data-flag-title="000.python-tkinter界面开发视频教程"><i class="far fa-eye fa-fw post-meta-icon"></i><span class="post-meta-label">阅读量:</span><span id="busuanzi_value_page_pv"><i class="fa-solid fa-spinner fa-spin"></i></span></span></div></div></div></header><main class="layout" id="content-inner"><div id="post"><article class="post-content" id="article-container"><blockquote>
<p>学习 python 的 Tkinter 界面应用开发</p>
</blockquote>
<h4 id="P1-Python-GUI之tkinter介绍"><a href="#P1-Python-GUI之tkinter介绍" class="headerlink" title="P1_Python_GUI之tkinter介绍"></a>P1_Python_GUI之tkinter介绍</h4><details class="toggle" style="border: 1px solid  bg"><summary class="toggle-button" style="background-color:  bg;color:  color">点击播放⬇</summary><div class="toggle-content"><iframe src="https://s138.ananas.chaoxing.com/video/16/59/27/ebf0b5c7a7358fbb2f98adf7dc564367/sd.mp4" width="100%" height="500px" frameborder="0" loading="lazy" allowfullscreen></iframe></div></details>

<h4 id="P2-Python-GUI之登录（1）"><a href="#P2-Python-GUI之登录（1）" class="headerlink" title="P2_Python_GUI之登录（1）"></a>P2_Python_GUI之登录（1）</h4><details class="toggle" style="border: 1px solid  bg"><summary class="toggle-button" style="background-color:  bg;color:  color">点击播放⬇</summary><div class="toggle-content"><iframe src="https://s138.ananas.chaoxing.com/video/fd/b0/2d/10dfaa7a78e81638660841274d3cde08/sd.mp4" width="100%" height="500px" frameborder="0" loading="lazy" allowfullscreen></iframe></div></details>

<h4 id="P3-python-GUI之登录（2）"><a href="#P3-python-GUI之登录（2）" class="headerlink" title="P3_python_GUI之登录（2）"></a>P3_python_GUI之登录（2）</h4><details class="toggle" style="border: 1px solid  bg"><summary class="toggle-button" style="background-color:  bg;color:  color">点击播放⬇</summary><div class="toggle-content"><iframe src="https://s138.ananas.chaoxing.com/video/b8/30/54/00a68c35f943d8d86a008d2aa814f9e4/sd.mp4" width="100%" height="500px" frameborder="0" loading="lazy" allowfullscreen></iframe></div></details>

<h4 id="P4-python-GUI登录-3-完结"><a href="#P4-python-GUI登录-3-完结" class="headerlink" title="P4_python_GUI登录(3)完结"></a>P4_python_GUI登录(3)完结</h4><details class="toggle" style="border: 1px solid  bg"><summary class="toggle-button" style="background-color:  bg;color:  color">点击播放⬇</summary><div class="toggle-content"><iframe src="https://s138.ananas.chaoxing.com/video/45/5d/f5/f0ca08d6c289ebeb702fdddbc39f31f7/sd.mp4" width="100%" height="500px" frameborder="0" loading="lazy" allowfullscreen></iframe></div></details>

<h4 id="P5-python-GUI主窗体之菜单组件"><a href="#P5-python-GUI主窗体之菜单组件" class="headerlink" title="P5_python_GUI主窗体之菜单组件"></a>P5_python_GUI主窗体之菜单组件</h4><details class="toggle" style="border: 1px solid  bg"><summary class="toggle-button" style="background-color:  bg;color:  color">点击播放⬇</summary><div class="toggle-content"><iframe src="https://s138.ananas.chaoxing.com/video/9a/af/0c/5440dd99a08b72aef70f881f16ce6a5d/sd.mp4" width="100%" height="500px" frameborder="0" loading="lazy" allowfullscreen></iframe></div></details>

<h4 id="P6-Python-GUI-主窗体之常用组件"><a href="#P6-Python-GUI-主窗体之常用组件" class="headerlink" title="P6_Python_GUI_主窗体之常用组件"></a>P6_Python_GUI_主窗体之常用组件</h4><details class="toggle" style="border: 1px solid  bg"><summary class="toggle-button" style="background-color:  bg;color:  color">点击播放⬇</summary><div class="toggle-content"><iframe src="https://s138.ananas.chaoxing.com/video/19/94/46/6b5b3ff0f367ef092d2d0e2a9e26c9e9/sd.mp4" width="100%" height="500px" frameborder="0" loading="lazy" allowfullscreen></iframe></div></details>

<h4 id="P7-Python-GUI第三方类库安装及pip源修改"><a href="#P7-Python-GUI第三方类库安装及pip源修改" class="headerlink" title="P7_Python_GUI第三方类库安装及pip源修改"></a>P7_Python_GUI第三方类库安装及pip源修改</h4><details class="toggle" style="border: 1px solid  bg"><summary class="toggle-button" style="background-color:  bg;color:  color">点击播放⬇</summary><div class="toggle-content"><iframe src="https://s138.ananas.chaoxing.com/video/f0/23/36/bd4c97f35aa88332da111ac8b586b792/sd.mp4" width="100%" height="500px" frameborder="0" loading="lazy" allowfullscreen></iframe></div></details>

<h4 id="P8-Python-GUI之Excel文件操作"><a href="#P8-Python-GUI之Excel文件操作" class="headerlink" title="P8_Python_GUI之Excel文件操作"></a>P8_Python_GUI之Excel文件操作</h4><details class="toggle" style="border: 1px solid  bg"><summary class="toggle-button" style="background-color:  bg;color:  color">点击播放⬇</summary><div class="toggle-content"><iframe src="https://s138.ananas.chaoxing.com/video/12/8e/1c/8508003f0c81976770c774f5ccabc7cf/sd.mp4" width="100%" height="500px" frameborder="0" loading="lazy" allowfullscreen></iframe></div></details>

<h4 id="P9-Python-GUI学生信息添加"><a href="#P9-Python-GUI学生信息添加" class="headerlink" title="P9_Python_GUI学生信息添加"></a>P9_Python_GUI学生信息添加</h4><details class="toggle" style="border: 1px solid  bg"><summary class="toggle-button" style="background-color:  bg;color:  color">点击播放⬇</summary><div class="toggle-content"><iframe src="https://s138.ananas.chaoxing.com/video/f2/82/0a/4557826bedda96ae6ab850b6a3327f40/sd.mp4" width="100%" height="500px" frameborder="0" loading="lazy" allowfullscreen></iframe></div></details>

<h4 id="P10-Python-GUI-学生信息显示listbox（1）"><a href="#P10-Python-GUI-学生信息显示listbox（1）" class="headerlink" title="P10_Python_GUI_学生信息显示listbox（1）"></a>P10_Python_GUI_学生信息显示listbox（1）</h4><details class="toggle" style="border: 1px solid  bg"><summary class="toggle-button" style="background-color:  bg;color:  color">点击播放⬇</summary><div class="toggle-content"><iframe src="https://s138.ananas.chaoxing.com/video/87/f9/ae/6562051406ecdba084a961f18a574acd/sd.mp4" width="100%" height="500px" frameborder="0" loading="lazy" allowfullscreen></iframe></div></details>

<h4 id="P11-Python-GUI之MySQL学习信息表构建"><a href="#P11-Python-GUI之MySQL学习信息表构建" class="headerlink" title="P11_Python_GUI之MySQL学习信息表构建"></a>P11_Python_GUI之MySQL学习信息表构建</h4><details class="toggle" style="border: 1px solid  bg"><summary class="toggle-button" style="background-color:  bg;color:  color">点击播放⬇</summary><div class="toggle-content"><iframe src="https://s138.ananas.chaoxing.com/video/73/c1/24/d6df06a8207dde197933a78d45c83b08/sd.mp4" width="100%" height="500px" frameborder="0" loading="lazy" allowfullscreen></iframe></div></details>

<h4 id="P12-Tkinter项目个人记账本实现-数据库CRUD操作"><a href="#P12-Tkinter项目个人记账本实现-数据库CRUD操作" class="headerlink" title="P12_Tkinter项目个人记账本实现-数据库CRUD操作"></a>P12_Tkinter项目个人记账本实现-数据库CRUD操作</h4><details class="toggle" style="border: 1px solid  bg"><summary class="toggle-button" style="background-color:  bg;color:  color">点击播放⬇</summary><div class="toggle-content"><iframe src="https://s138.ananas.chaoxing.com/video/36/e2/91/e41eec9bcc3af18051f62c24a8d4038a/sd.mp4" width="100%" height="500px" frameborder="0" loading="lazy" allowfullscreen></iframe></div></details>

<h4 id="P13-Tkinter-notepad记事本开发之菜单栏实现"><a href="#P13-Tkinter-notepad记事本开发之菜单栏实现" class="headerlink" title="P13_Tkinter_notepad记事本开发之菜单栏实现"></a>P13_Tkinter_notepad记事本开发之菜单栏实现</h4><details class="toggle" style="border: 1px solid  bg"><summary class="toggle-button" style="background-color:  bg;color:  color">点击播放⬇</summary><div class="toggle-content"><iframe src="https://s138.ananas.chaoxing.com/video/71/e9/d8/51eae680958e8699be1e92cc0b72b5c8/sd.mp4" width="100%" height="500px" frameborder="0" loading="lazy" allowfullscreen></iframe></div></details>

<h4 id="P14-Tkinter-NotePad记事本开发之工具栏-amp-界面整体实现"><a href="#P14-Tkinter-NotePad记事本开发之工具栏-amp-界面整体实现" class="headerlink" title="P14_Tkinter_NotePad记事本开发之工具栏&amp;界面整体实现"></a>P14_Tkinter_NotePad记事本开发之工具栏&amp;界面整体实现</h4><details class="toggle" style="border: 1px solid  bg"><summary class="toggle-button" style="background-color:  bg;color:  color">点击播放⬇</summary><div class="toggle-content"><iframe src="https://s138.ananas.chaoxing.com/video/0b/9f/58/52f5e197379b40e6b63ce4a1f8b8231b/sd.mp4" width="100%" height="500px" frameborder="0" loading="lazy" allowfullscreen></iframe></div></details>

<h4 id="P15-Tkinter-notepad记事本开发之文件菜单功能实现"><a href="#P15-Tkinter-notepad记事本开发之文件菜单功能实现" class="headerlink" title="P15_Tkinter_notepad记事本开发之文件菜单功能实现"></a>P15_Tkinter_notepad记事本开发之文件菜单功能实现</h4><details class="toggle" style="border: 1px solid  bg"><summary class="toggle-button" style="background-color:  bg;color:  color">点击播放⬇</summary><div class="toggle-content"><iframe src="https://s138.ananas.chaoxing.com/video/17/ba/49/9d48b6d2ff1ce0af216f43fa93ba8679/sd.mp4" width="100%" height="500px" frameborder="0" loading="lazy" allowfullscreen></iframe></div></details>

<h4 id="P16-Tkinter-notepad记事本开发之弹出菜单和处理"><a href="#P16-Tkinter-notepad记事本开发之弹出菜单和处理" class="headerlink" title="P16_Tkinter_notepad记事本开发之弹出菜单和处理"></a>P16_Tkinter_notepad记事本开发之弹出菜单和处理</h4><details class="toggle" style="border: 1px solid  bg"><summary class="toggle-button" style="background-color:  bg;color:  color">点击播放⬇</summary><div class="toggle-content"><iframe src="https://s138.ananas.chaoxing.com/video/9b/21/2a/471d2a5878b39e15b035a310c1be820f/sd.mp4" width="100%" height="500px" frameborder="0" loading="lazy" allowfullscreen></iframe></div></details>

<h4 id="P17-Tkinter-notepad记事本开发之行号和高亮处理"><a href="#P17-Tkinter-notepad记事本开发之行号和高亮处理" class="headerlink" title="P17_Tkinter_notepad记事本开发之行号和高亮处理"></a>P17_Tkinter_notepad记事本开发之行号和高亮处理</h4><details class="toggle" style="border: 1px solid  bg"><summary class="toggle-button" style="background-color:  bg;color:  color">点击播放⬇</summary><div class="toggle-content"><iframe src="https://s138.ananas.chaoxing.com/video/65/68/e8/e927900e44500be9fc97bd8bc9c385fb/sd.mp4" width="100%" height="500px" frameborder="0" loading="lazy" allowfullscreen></iframe></div></details>

<h4 id="P18-Tkinter-notepad记事本开发之文本查找功能实现"><a href="#P18-Tkinter-notepad记事本开发之文本查找功能实现" class="headerlink" title="P18_Tkinter_notepad记事本开发之文本查找功能实现"></a>P18_Tkinter_notepad记事本开发之文本查找功能实现</h4><details class="toggle" style="border: 1px solid  bg"><summary class="toggle-button" style="background-color:  bg;color:  color">点击播放⬇</summary><div class="toggle-content"><iframe src="https://s138.ananas.chaoxing.com/video/b1/4b/f0/b54623a32a48ab7eecaca32f3f17460b/sd.mp4" width="100%" height="500px" frameborder="0" loading="lazy" allowfullscreen></iframe></div></details>

<h4 id="P19-Tkinter-notepad记事本开发之主题设置"><a href="#P19-Tkinter-notepad记事本开发之主题设置" class="headerlink" title="P19_Tkinter_notepad记事本开发之主题设置"></a>P19_Tkinter_notepad记事本开发之主题设置</h4><details class="toggle" style="border: 1px solid  bg"><summary class="toggle-button" style="background-color:  bg;color:  color">点击播放⬇</summary><div class="toggle-content"><iframe src="https://s138.ananas.chaoxing.com/video/68/6e/5b/df34bfc626642e7c775b126a8fbdb1b1/sd.mp4" width="100%" height="500px" frameborder="0" loading="lazy" allowfullscreen></iframe></div></details>

<h4 id="P20-Tkinter-notepad记事本开发之项目打包exe文件"><a href="#P20-Tkinter-notepad记事本开发之项目打包exe文件" class="headerlink" title="P20_Tkinter_notepad记事本开发之项目打包exe文件"></a>P20_Tkinter_notepad记事本开发之项目打包exe文件</h4><details class="toggle" style="border: 1px solid  bg"><summary class="toggle-button" style="background-color:  bg;color:  color">点击播放⬇</summary><div class="toggle-content"><iframe src="https://s138.ananas.chaoxing.com/video/b9/4b/77/5c90222a50561e8a9e40bd5b929a4751/sd.mp4" width="100%" height="500px" frameborder="0" loading="lazy" allowfullscreen></iframe></div></details>
<h1 id="组件"><a href="#组件" class="headerlink" title="组件"></a>组件</h1><div class="timeline orange"><div class='timeline-item headline'><div class='timeline-item-title'><div class='item-circle'><p>python-tkinter界面开发视频教程(B站视频)</p>
</div></div></div><div class='timeline-item'><div class='timeline-item-title'><div class='item-circle'><p>课程</p>
</div></div><div class='timeline-item-content'><ul>
<li>学习视频</li>
<li><a target="_blank" rel="noopener" href="https://www.bilibili.com/video/BV1W7411F7AE?p=1">https://www.bilibili.com/video/BV1W7411F7AE?p=1</a></li>
</ul>
</div></div></div>
</article><div class="post-copyright"><div class="post-copyright__author"><span class="post-copyright-meta">文章作者: </span><span class="post-copyright-info"><a href="http://liukuaizhuan.gitee.io">扣小妖</a></span></div><div class="post-copyright__type"><span class="post-copyright-meta">文章链接: </span><span class="post-copyright-info"><a href="http://liukuaizhuan.gitee.io/posts/b3973be2.html">http://liukuaizhuan.gitee.io/posts/b3973be2.html</a></span></div><div class="post-copyright__notice"><span class="post-copyright-meta">版权声明: </span><span class="post-copyright-info">本站所有文章除特别声明外，均采用 <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" target="_blank">CC BY-NC-SA 4.0</a> 许可协议</span></div></div><div class="tag_share"><div class="post-meta__tag-list"><a class="post-meta__tags" href="/tags/tkinter%E7%95%8C%E9%9D%A2%E5%BA%94%E7%94%A8%E5%BC%80%E5%8F%91/">tkinter界面应用开发</a></div><div class="post_share"><div class="social-share" data-image="https://p.ananas.chaoxing.com/star3/origin/aabac151cc827272090f28644d2e2094.png" data-sites="facebook,twitter,wechat,weibo,qq"></div><link rel="stylesheet" href="https://lib.baomitu.com/social-share.js/1.0.16/css/share.min.css" media="print" onload="this.media='all'"><script src="https://lib.baomitu.com/social-share.js/1.0.16/js/social-share.min.js" defer></script></div></div><div class="post-reward"><div class="reward-button"><i class="fas fa-qrcode"></i> 打赏</div><div class="reward-main"><ul class="reward-all"><li class="reward-item"><a href="https://p.ananas.chaoxing.com/star3/origin/5a01db3c5a0daca9fa2b024736bf66e3.png" target="_blank"><img class="post-qr-code-img" src="https://p.ananas.chaoxing.com/star3/origin/5a01db3c5a0daca9fa2b024736bf66e3.png" alt="微信打赏"/></a><div class="post-qr-code-desc">微信打赏</div></li><li class="reward-item"><a href="https://p.ananas.chaoxing.com/star3/origin/afffb275198370656cb6cef6a1107185.png" target="_blank"><img class="post-qr-code-img" src="https://p.ananas.chaoxing.com/star3/origin/afffb275198370656cb6cef6a1107185.png" alt="支付宝打赏"/></a><div class="post-qr-code-desc">支付宝打赏</div></li></ul></div></div><nav class="pagination-post" id="pagination"><div class="prev-post pull-left"><a href="/posts/faa48056.html"><img class="prev-cover" src="https://p.ananas.chaoxing.com/star3/origin/26b76ef792809782fbcee1ca60afdbf8.png" onerror="onerror=null;src='/img/404.jpg'" alt="cover of previous post"><div class="pagination-info"><div class="label">上一篇</div><div class="prev_info">☆☆☆== hexo-常用语法 ==☆☆☆</div></div></a></div><div class="next-post pull-right"><a href="/posts/fa728493.html"><img class="next-cover" src="https://clubimg.club.vmall.com/data/attachment/forum/201407/05/073133xf33u40x3rb6lxux.jpg" onerror="onerror=null;src='/img/404.jpg'" alt="cover of next post"><div class="pagination-info"><div class="label">下一篇</div><div class="next_info">hexo主题 特殊的语法</div></div></a></div></nav><div class="relatedPosts"><div class="headline"><i class="fas fa-thumbs-up fa-fw"></i><span>相关推荐</span></div><div class="relatedPosts-list"><div><a href="/posts/91fa484a.html" title="001.初认识tkinter"><img class="cover" src="https://www.toopic.cn/public/uploads/small/16427494393164274943953.jpg" alt="cover"><div class="content is-center"><div class="date"><i class="far fa-calendar-alt fa-fw"></i> 2022-12-13</div><div class="title">001.初认识tkinter</div></div></a></div><div><a href="/posts/a7276a85.html" title="002.组件-lable标签和input输入框"><img class="cover" src="https://www.toopic.cn/public/uploads/small/1658043938262165804393852.jpg" alt="cover"><div class="content is-center"><div class="date"><i class="far fa-calendar-alt fa-fw"></i> 2022-12-15</div><div class="title">002.组件-lable标签和input输入框</div></div></a></div></div></div></div><div class="aside-content" id="aside-content"><div class="card-widget card-info"><div class="is-center"><div class="avatar-img"><img src="https://p.ananas.chaoxing.com/star3/origin/c6eb667caaea4b46a934d65b6a348821.png" onerror="this.onerror=null;this.src='/img/friend_404.gif'" alt="avatar"/></div><div class="author-info__name">扣小妖</div><div class="author-info__description">Email：  liukuaizhuan@qq.com</div></div><div class="card-info-data site-data is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">57</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">6</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">14</div></a></div></div><div class="card-widget card-announcement"><div class="item-headline"><i class="fas fa-bullhorn fa-shake"></i><span>公告</span></div><div class="announcement_content">This is my Blog 技术笔记</div></div><div class="sticky_layout"><div class="card-widget" id="card-toc"><div class="item-headline"><i class="fas fa-stream"></i><span>目录</span><span class="toc-percentage"></span></div><div class="toc-content"><ol class="toc"><li class="toc-item toc-level-4"><a class="toc-link" href="#P1-Python-GUI%E4%B9%8Btkinter%E4%BB%8B%E7%BB%8D"><span class="toc-number">1.</span> <span class="toc-text">P1_Python_GUI之tkinter介绍</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#P2-Python-GUI%E4%B9%8B%E7%99%BB%E5%BD%95%EF%BC%881%EF%BC%89"><span class="toc-number">2.</span> <span class="toc-text">P2_Python_GUI之登录（1）</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#P3-python-GUI%E4%B9%8B%E7%99%BB%E5%BD%95%EF%BC%882%EF%BC%89"><span class="toc-number">3.</span> <span class="toc-text">P3_python_GUI之登录（2）</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#P4-python-GUI%E7%99%BB%E5%BD%95-3-%E5%AE%8C%E7%BB%93"><span class="toc-number">4.</span> <span class="toc-text">P4_python_GUI登录(3)完结</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#P5-python-GUI%E4%B8%BB%E7%AA%97%E4%BD%93%E4%B9%8B%E8%8F%9C%E5%8D%95%E7%BB%84%E4%BB%B6"><span class="toc-number">5.</span> <span class="toc-text">P5_python_GUI主窗体之菜单组件</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#P6-Python-GUI-%E4%B8%BB%E7%AA%97%E4%BD%93%E4%B9%8B%E5%B8%B8%E7%94%A8%E7%BB%84%E4%BB%B6"><span class="toc-number">6.</span> <span class="toc-text">P6_Python_GUI_主窗体之常用组件</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#P7-Python-GUI%E7%AC%AC%E4%B8%89%E6%96%B9%E7%B1%BB%E5%BA%93%E5%AE%89%E8%A3%85%E5%8F%8Apip%E6%BA%90%E4%BF%AE%E6%94%B9"><span class="toc-number">7.</span> <span class="toc-text">P7_Python_GUI第三方类库安装及pip源修改</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#P8-Python-GUI%E4%B9%8BExcel%E6%96%87%E4%BB%B6%E6%93%8D%E4%BD%9C"><span class="toc-number">8.</span> <span class="toc-text">P8_Python_GUI之Excel文件操作</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#P9-Python-GUI%E5%AD%A6%E7%94%9F%E4%BF%A1%E6%81%AF%E6%B7%BB%E5%8A%A0"><span class="toc-number">9.</span> <span class="toc-text">P9_Python_GUI学生信息添加</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#P10-Python-GUI-%E5%AD%A6%E7%94%9F%E4%BF%A1%E6%81%AF%E6%98%BE%E7%A4%BAlistbox%EF%BC%881%EF%BC%89"><span class="toc-number">10.</span> <span class="toc-text">P10_Python_GUI_学生信息显示listbox（1）</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#P11-Python-GUI%E4%B9%8BMySQL%E5%AD%A6%E4%B9%A0%E4%BF%A1%E6%81%AF%E8%A1%A8%E6%9E%84%E5%BB%BA"><span class="toc-number">11.</span> <span class="toc-text">P11_Python_GUI之MySQL学习信息表构建</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#P12-Tkinter%E9%A1%B9%E7%9B%AE%E4%B8%AA%E4%BA%BA%E8%AE%B0%E8%B4%A6%E6%9C%AC%E5%AE%9E%E7%8E%B0-%E6%95%B0%E6%8D%AE%E5%BA%93CRUD%E6%93%8D%E4%BD%9C"><span class="toc-number">12.</span> <span class="toc-text">P12_Tkinter项目个人记账本实现-数据库CRUD操作</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#P13-Tkinter-notepad%E8%AE%B0%E4%BA%8B%E6%9C%AC%E5%BC%80%E5%8F%91%E4%B9%8B%E8%8F%9C%E5%8D%95%E6%A0%8F%E5%AE%9E%E7%8E%B0"><span class="toc-number">13.</span> <span class="toc-text">P13_Tkinter_notepad记事本开发之菜单栏实现</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#P14-Tkinter-NotePad%E8%AE%B0%E4%BA%8B%E6%9C%AC%E5%BC%80%E5%8F%91%E4%B9%8B%E5%B7%A5%E5%85%B7%E6%A0%8F-amp-%E7%95%8C%E9%9D%A2%E6%95%B4%E4%BD%93%E5%AE%9E%E7%8E%B0"><span class="toc-number">14.</span> <span class="toc-text">P14_Tkinter_NotePad记事本开发之工具栏&amp;界面整体实现</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#P15-Tkinter-notepad%E8%AE%B0%E4%BA%8B%E6%9C%AC%E5%BC%80%E5%8F%91%E4%B9%8B%E6%96%87%E4%BB%B6%E8%8F%9C%E5%8D%95%E5%8A%9F%E8%83%BD%E5%AE%9E%E7%8E%B0"><span class="toc-number">15.</span> <span class="toc-text">P15_Tkinter_notepad记事本开发之文件菜单功能实现</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#P16-Tkinter-notepad%E8%AE%B0%E4%BA%8B%E6%9C%AC%E5%BC%80%E5%8F%91%E4%B9%8B%E5%BC%B9%E5%87%BA%E8%8F%9C%E5%8D%95%E5%92%8C%E5%A4%84%E7%90%86"><span class="toc-number">16.</span> <span class="toc-text">P16_Tkinter_notepad记事本开发之弹出菜单和处理</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#P17-Tkinter-notepad%E8%AE%B0%E4%BA%8B%E6%9C%AC%E5%BC%80%E5%8F%91%E4%B9%8B%E8%A1%8C%E5%8F%B7%E5%92%8C%E9%AB%98%E4%BA%AE%E5%A4%84%E7%90%86"><span class="toc-number">17.</span> <span class="toc-text">P17_Tkinter_notepad记事本开发之行号和高亮处理</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#P18-Tkinter-notepad%E8%AE%B0%E4%BA%8B%E6%9C%AC%E5%BC%80%E5%8F%91%E4%B9%8B%E6%96%87%E6%9C%AC%E6%9F%A5%E6%89%BE%E5%8A%9F%E8%83%BD%E5%AE%9E%E7%8E%B0"><span class="toc-number">18.</span> <span class="toc-text">P18_Tkinter_notepad记事本开发之文本查找功能实现</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#P19-Tkinter-notepad%E8%AE%B0%E4%BA%8B%E6%9C%AC%E5%BC%80%E5%8F%91%E4%B9%8B%E4%B8%BB%E9%A2%98%E8%AE%BE%E7%BD%AE"><span class="toc-number">19.</span> <span class="toc-text">P19_Tkinter_notepad记事本开发之主题设置</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#P20-Tkinter-notepad%E8%AE%B0%E4%BA%8B%E6%9C%AC%E5%BC%80%E5%8F%91%E4%B9%8B%E9%A1%B9%E7%9B%AE%E6%89%93%E5%8C%85exe%E6%96%87%E4%BB%B6"><span class="toc-number">20.</span> <span class="toc-text">P20_Tkinter_notepad记事本开发之项目打包exe文件</span></a></li></ol></li></ol></li></ol></li><li class="toc-item toc-level-1"><a class="toc-link" href="#%E7%BB%84%E4%BB%B6"><span class="toc-number"></span> <span class="toc-text">组件</span></a></div></div><div class="card-widget card-recent-post"><div class="item-headline"><i class="fas fa-history"></i><span>最新文章</span></div><div class="aside-list"><div class="aside-list-item"><a class="thumbnail" href="/posts/7f4a6eeb.html" title="013.c++核心编程-类和对象"><img src="https://p.ananas.chaoxing.com/star3/origin/7ea674ffcd12ef7d943d54c93e9203a4.png" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="013.c++核心编程-类和对象"/></a><div class="content"><a class="title" href="/posts/7f4a6eeb.html" title="013.c++核心编程-类和对象">013.c++核心编程-类和对象</a><time datetime="2023-02-13T14:55:03.000Z" title="发表于 2023-02-13 22:55:03">2023-02-13</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/posts/4adebd64.html" title="012.C++核心编程-函数提高"><img src="https://p.ananas.chaoxing.com/star3/origin/b6c49bb4892ad191edbc0363caf45530.png" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="012.C++核心编程-函数提高"/></a><div class="content"><a class="title" href="/posts/4adebd64.html" title="012.C++核心编程-函数提高">012.C++核心编程-函数提高</a><time datetime="2023-02-13T14:51:24.000Z" title="发表于 2023-02-13 22:51:24">2023-02-13</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/posts/bff12c11.html" title="011.C++核心编程-引用"><img src="https://p.ananas.chaoxing.com/star3/origin/86403540a7b572fec123890e9a638adc.png" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="011.C++核心编程-引用"/></a><div class="content"><a class="title" href="/posts/bff12c11.html" title="011.C++核心编程-引用">011.C++核心编程-引用</a><time datetime="2023-02-13T14:47:34.000Z" title="发表于 2023-02-13 22:47:34">2023-02-13</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/posts/9368cbfc.html" title="010.C++核心编程-内存分区模型"><img src="https://p.ananas.chaoxing.com/star3/origin/b4c7f6d417c4c75ed02262f3549625c8.png" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="010.C++核心编程-内存分区模型"/></a><div class="content"><a class="title" href="/posts/9368cbfc.html" title="010.C++核心编程-内存分区模型">010.C++核心编程-内存分区模型</a><time datetime="2023-02-06T15:28:05.000Z" title="发表于 2023-02-06 23:28:05">2023-02-06</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/posts/b056b485.html" title="009.C++基础实战-通讯录管理系统"><img src="https://p.ananas.chaoxing.com/star3/origin/5cdbcc7b75aea2aa3a8b12cae1439e99.png" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="009.C++基础实战-通讯录管理系统"/></a><div class="content"><a class="title" href="/posts/b056b485.html" title="009.C++基础实战-通讯录管理系统">009.C++基础实战-通讯录管理系统</a><time datetime="2023-02-04T10:02:31.000Z" title="发表于 2023-02-04 18:02:31">2023-02-04</time></div></div></div></div></div></div></main><footer id="footer"><div id="footer-wrap"><div class="copyright">&copy;2020 - 2023 By 扣小妖</div><div class="footer_custom_text"><p style="margin:10px 0 5px"><a target="_blank" href="https://hexo.io/" style="margin-inline:5px">博客 hexo</a><a target="_blank" href="https://butterfly.js.org/" style="margin-inline:5px">主题 Butterfly</a><a target="_blank" href="https://gitee.com/" style="margin-inline:5px">托管 Gitee</a></p></div></div></footer></div><div id="rightside"><div id="rightside-config-hide"><button id="readmode" type="button" title="阅读模式"><i class="fas fa-book-open"></i></button><button id="darkmode" type="button" title="浅色和深色模式转换"><i class="fas fa-adjust"></i></button><button id="hide-aside-btn" type="button" title="单栏和双栏切换"><i class="fas fa-arrows-alt-h"></i></button></div><div id="rightside-config-show"><button id="rightside_config" type="button" title="设置"><i class="fas fa-cog fa-spin"></i></button><button class="close" id="mobile-toc-button" type="button" title="目录"><i class="fas fa-list-ul"></i></button><button id="go-up" type="button" title="回到顶部"><i class="fas fa-arrow-up"></i></button></div></div><div id="local-search"><div class="search-dialog"><nav class="search-nav"><span class="search-dialog-title">搜索</span><span id="loading-status"></span><button class="search-close-button"><i class="fas fa-times"></i></button></nav><div class="is-center" id="loading-database"><i class="fas fa-spinner fa-pulse"></i><span>  数据库加载中</span></div><div class="search-wrap"><div id="local-search-input"><div class="local-search-box"><input class="local-search-box--input" placeholder="搜索文章" type="text"/></div></div><hr/><div id="local-search-results"></div></div></div><div id="search-mask"></div></div><div><script src="/js/utils.js"></script><script src="/js/main.js"></script><script src="https://gcore.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox.umd.min.js"></script><script src="https://lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/node-snackbar/0.1.16/snackbar.min.js"></script><script src="/js/search/local-search.js"></script><div class="js-pjax"><script>(() => {
  const $mermaidWrap = document.querySelectorAll('#article-container .mermaid-wrap')
  if ($mermaidWrap.length) {
    window.runMermaid = () => {
      window.loadMermaid = true
      const theme = document.documentElement.getAttribute('data-theme') === 'dark' ? 'dark' : 'default'

      Array.from($mermaidWrap).forEach((item, index) => {
        const mermaidSrc = item.firstElementChild
        const mermaidThemeConfig = '%%{init:{ \'theme\':\'' + theme + '\'}}%%\n'
        const mermaidID = 'mermaid-' + index
        const mermaidDefinition = mermaidThemeConfig + mermaidSrc.textContent
        mermaid.mermaidAPI.render(mermaidID, mermaidDefinition, (svgCode) => {
          mermaidSrc.insertAdjacentHTML('afterend', svgCode)
        })
      })
    }

    const loadMermaid = () => {
      window.loadMermaid ? runMermaid() : getScript('https://gcore.jsdelivr.net/npm/mermaid/dist/mermaid.min.js').then(runMermaid)
    }

    window.pjax ? loadMermaid() : document.addEventListener('DOMContentLoaded', loadMermaid)
  }
})()</script></div><script defer="defer" id="ribbon" src="https://gcore.jsdelivr.net/npm/butterfly-extsrc/dist/canvas-ribbon.min.js" size="150" alpha="0.6" zIndex="-1" mobile="false" data-click="false"></script><script async data-pjax src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script></div></body></html>